﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BTaxiNoPsgDistanceConfig
    {
        private readonly DTaxiNoPsgDistanceConfig _dTaxiNoPsgDistanceConfig = new DTaxiNoPsgDistanceConfig();
        public bool Exists(string phoneNumber)
        {
            return _dTaxiNoPsgDistanceConfig.Exists(phoneNumber);
        }
         
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(Model.TaxiNoPsgDistanceConfig model)
        {
            return _dTaxiNoPsgDistanceConfig.Add(model);
        }
         
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(Model.TaxiNoPsgDistanceConfig model)
        {
            return _dTaxiNoPsgDistanceConfig.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int id)
        {
            return _dTaxiNoPsgDistanceConfig.Delete(id);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return _dTaxiNoPsgDistanceConfig.GetList(strWhere);
        }

        public Model.TaxiNoPsgDistanceConfig GetModel(string phoneNumber)
        {
            return _dTaxiNoPsgDistanceConfig.GetModel(phoneNumber);
        }
    }
}
